package cn.cqie.attendance.manager.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@ApiModel(value="门禁打卡导入判断状态对象", description="")
public class AdminStuCourseLeaves implements Serializable {
        private static final long serialVersionUID = -6076396448222680984L;

        @ApiModelProperty(value = "课程id")
        private Integer courseId;

        @DateTimeFormat(pattern = "HH:mm:ss")
        @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value = "签到时间")
        private Date signInTime;

        @DateTimeFormat(pattern = "HH:mm:ss")
        @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value = "签退时间")
        private Date signOutTime;

        @ApiModelProperty(value = "上课教室")
        private String classRoom;

        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        @ApiModelProperty(value = "课程时间")
        private Date courseTime;

        @ApiModelProperty(value = "请假id")
        private Integer leavesId;

        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        @ApiModelProperty(value = "请假开始时间")
        private Date startTime;

        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @ApiModelProperty(value = "请假结束时间")
        private Date endTime;

        @ApiModelProperty(value = "项目状态：0交付 1未交付")
        private Integer courseStatus;

}
